<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Login</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="description">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/bootstrap-responsive.css">
<link rel="stylesheet" href="css/docs.css">
</head>
<body>
<script language=javascript>
function chgScode(obj){
	//document.getElementById('scode').src = "/nag/scode?r=" + new Date();
	obj.src = "/nag/scode?r=" + new Date();
}
</script>
	<div class="container">
		<form action="/login" class="form-horizontal">
			<fieldset>
				<legend>Login</legend>
				<div class="control-group">
					<label for="userNameBtn" class="control-label">Name</label>
					<div class="controls">
						<input type="text" id="userNameBtn" name="UserName"	class="input-xlarge">
						<span class="help-inline">{{.userError}}</span>
					</div>
				</div>
				<div class="control-group">
					<label for="passwdBtn" class="control-label">Password</label>
					<div class="controls">
						<input type="password" id="passwdBtn" name="Passwd"	class="input-xlarge">
					</div>
				</div>
				<div class="control-group">
					<label for="Scode" class="control-label">Verify Code</label>
					<div class="controls">
					    <div><input type="text" id="scode" name="Scode" class="input-xlarge">
					    	<span class="help-inline">{{.scodeError}}</span>
					    </div>
					    <div style="margin-top:10px;"><img border="1" src="/nag/scode" alt="Verify Code" onclick="chgScode(this);"></div>
					</div>
				</div>				
				<div class="form-actions">
					<button class="btn btn-primary" type="submit">Submit</button>
					<button class="btn">Cancel</button>
				</div>
			</fieldset>
		</form>
	</div>
<form name=f1>
</body>
</html>
